﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Visa_VisaDetailList.aspx.cs" Inherits="FS.Web.BLL.Visa.Visa_VisaDetailList" %>

<%@ Register Src="../../UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<%@ Register Src="../../UserControl/LoadButton.ascx" TagName="LoadButton" TagPrefix="uc2" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>签证订单明细</title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>    
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <link href="/Themes/Scripts/EasyUI/easyui.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/EasyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            divresize(160);
            FixedTableHeader("#table1", $(window).height() - 190);
        }) 
        
        //出签
        function ResultOK() {
            var key = CheckboxValue();
            if (IsDelData(key)) {
                var url = "/BLL/Visa/Visa_VisaDetailOKForm.aspx?key=" + key;
                top.openDialog(url, 'Menu_Form', '出签明细管理编辑--出签', 330, 180, 50, 50);    
            }
        }

        //拒签
        function ResultFalse() {
            var key = CheckboxValue();
            if (IsDelData(key)) {
                var url = "/BLL/Visa/Visa_VisaDetailFailForm.aspx?key=" + key;
                top.openDialog(url, 'Menu_Form', '出签明细管理编辑 - 拒签', 600, 220, 50, 50);
                
            }
        }

        //导出
        function download() {
            showConfirmMsg('注：您确认要导出当前清单吗？', function (r) {
                if (r) {
                    document.getElementById("<%=Download.ClientID%>").click();
                }
            });
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            出签管理列表
        </div>
    </div>
    <div class="btnbarcontetn">
        <table cellpadding="0" cellspacing="0" border="0" class="frm">
            <tr>
                <th>送签时间</th>
                <td>
                    <input type="text" id="begdate" class="txt" runat="server" style="width:100px;" onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd' })" />
                    至
                    <input type="text" id="enddate" class="txt" runat="server" style="width:100px;" onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd' })" />
                </td> 
                <th>供应商</th>
                <td>
                    <select id="sel_supply" class="select" runat="server" style="width:106px"/>
                </td>               
                <th>签证国家</th>
                <td>
                    <select id="sel_cityid" class="select" runat="server" style="width:106px"/>
                </td>
                <th>签证类型</th>
                <td>
                    <select id="sel_certtype" class="select" runat="server" style="width:106px"/>
                </td>                                               
            </tr>
            <tr>
                <th>客人姓名</th>
                <td><input type="text" id="cusname" class="txt" runat="server" style="width: 100px;" /></td>
                <th>联系电话</th>
                <td><input type="text" id="cusphone" class="txt" runat="server" style="width: 100px;" /></td>
                <th>证件号</th>
                <td><input type="text" id="cusno" class="txt" runat="server" style="width: 100px;" /></td>
                <th>委托方</th>
                <td>
                    <select id="sel_trust" class="select" runat="server" style="width:106px"/>
                </td>
            </tr>
            <tr>                                   
                <td colspan="8">
                    <input id="Hchange" type="hidden" runat="server" value="0" /> 
                    <asp:LinkButton ID="lbtSearch" runat="server" class="button green" OnClick="lbtSearch_Click" OnClientClick="textchange()"> <span class="icon-botton" style="background: url('../../Themes/images/Search.png') no-repeat scroll 0px 4px;"></span>查 询</asp:LinkButton>                                       
                    <uc2:LoadButton ID="LoadButton1" runat="server" />                    
                    <asp:Button ID="Download" runat="server" OnClick="Download_Click" style="display:none" />
                </td>
            </tr>
        </table>        
    </div>
    <div class="div-body">
        <table id="table1" class="grid">
            <thead>
                <tr>
                    <td style="width:20px; text-align: left;">
                        <label id="checkAllOff" onclick="CheckAllLine()" title="全选">
                            &nbsp;</label>
                    </td>
                    <td style="width:90px; text-align: center;">
                        送签日期
                    </td>
                    <td style="width:90px; text-align: center;">
                        截至日期
                    </td>
                    <td style="width:80px; text-align: center;">
                        客人姓名
                    </td>
                    <td style="width:100px; text-align: center;">
                        委托方
                    </td>
                    <td style="width:100px; text-align: center;">
                        供应商
                    </td>
                    <td style="width:80px; text-align: center;">
                        签证国家
                    </td> 
                    <td style="width:100px; text-align: center;">
                        签证类型
                    </td>
                    <td style="width:40px; text-align: center;">
                        状态
                    </td>
                    <td style="width:60px; text-align: center;">
                        操作员
                    </td>
                    <td style="width:60px; text-align: center;">
                        审核员
                    </td>
                    <td style="width:60px; text-align: center;">
                        送签员
                    </td> 
                    <td style="width:80px; text-align: center;">
                        应收费用
                    </td>                                                                        
                    <td>
                        签证备注
                    </td>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rp_Item" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td style="width:20px; text-align: left;">
                                <input type="checkbox" value="<%#Eval("infodetail_id")%>" name="checkbox" />
                            </td>
                            <td style="width:90px;">
                                <%#Eval("submitdate")%>       
                            </td>
                            <td style="width:90px;">
                                <%#Eval("date_sendback")%>       
                            </td>  
                            <td style="width:80px;"> 
                                 <%#Eval("infodetail_user")%>         
                            </td>
                            <td style="width:100px;"> 
                                 <%#Eval("trust_name")%>         
                            </td>
                            <td style="width:100px;">
                                <%#Eval("Supply_Name")%>
                            </td>                         
                            <td style="width:80px;">
                                <%#Eval("city_name")%>
                            </td>                            
                            <td style="width:100px;"> 
                                 <%#Eval("certname")%>         
                            </td>
                            <td style="width:40px;">
                                <%#Eval("infoname")%>       
                            </td>
                             <td style="width:60px;">
                                <%#Eval("user_oper")%>       
                            </td>
                             <td style="width:60px;">
                                <%#Eval("user_audit")%>       
                            </td>
                             <td style="width:60px;">
                                <%#Eval("user_sendto")%>       
                            </td>                           
                            <td style="width:80px;">
                                <%#Eval("InfoDetai_BegPrice")%>       
                            </td>                                                                                                               
                            <td>
                                <a href="#" title=" <%# Eval("rmk2").ToString().Replace("\r\n","<br>") %>" class="easyui-tooltip" >
                                     <%#Eval("rmk")%></a>
                            </td>                              
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <% if (rp_Item != null)
                           {
                               if (rp_Item.Items.Count == 0)
                               {
                                   Response.Write("<tr><td colspan='9' style='color:red;text-align:center'>没有找到您要的相关数据！</td></tr>");
                               }
                           } %>
                    </FooterTemplate>
                </asp:Repeater>
            </tbody>
        </table>       
    </div>  
     <uc1:PageControl ID="PageControl1" runat="server" />  
    </form>
</body>
</html>
